home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / src / turbo-tcp-20b4-cpp.hqx / TurboTCP / TurboTCP source / TCPCompletionProc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-30  |  785 b   |  36 lines

  1. /*
  2. ** TCPCompletionProc.h
  3. **
  4. **    TurboTCP support library
  5. **    TCP asynchronous call completion procedure
  6. **    68K code resource for PowerPC applications
  7. **
  8. **    Copyright © 1993-94, FrostByte Design / Eric Scouten
  9. **
  10. */
  11.  
  12. #pragma once
  13.  
  14. #include <TCPPB.h>
  15.  
  16. #if defined(powerc) || defined (__powerc)
  17. #pragma options align=mac68k
  18. #endif
  19.  
  20. struct x_TurboTCPQElem {
  21.     struct QElem*            qLink;            // next item in queue
  22.     short                qType;            // entry type — see asyncQueueType above
  23.     void*                qSelfLink;            // link to whatever object we had
  24. };
  25.  
  26. struct TurboTCPiopb {
  27.     struct TCPiopb            itsParamBlock;        // the TCP parameter block
  28.     QHdr*                itsQueue;            // the queue we’re in
  29.     struct x_TurboTCPQElem    itsQElem;            // the queue entry
  30. };
  31.  
  32. #if defined(powerc) || defined(__powerc)
  33. #pragma options align=reset
  34. #endif
  35.  
  36.